package com.guli.generator.controller;

import com.gulicom.R;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("/eduservice/user")
@CrossOrigin
public class EduLoginController {
    @PostMapping("/login")
    @ResponseBody
    public R goLogin(){
        return R.ok().data("token","admin");
    }
    @GetMapping("/info")
    @ResponseBody
    public R goInfo(){
       return R.ok().data("roles","[roles]").data("name","admin").data("avatar","https://guli-file-190513.oss-cn-beijing.aliyuncs.com/avatar/default.jpg");
    }
}
